<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="com.sqlConnection.MyConnection"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Address Book</title>
<style>
header {
    background-color:black;
    color:white;
    text-align:center;
    padding:5px;	 
}
nav {
    line-height:30px;
    background-color:#eeeeee;
    height:300px;
    width:100px;
    float:left;
    padding:5px;	      
}
section {
    width:350px;
    float:left;
    padding:10px;	 	 
}
footer {
	width:100%;
	height:30px;
	position:absolute;
	bottom:0;
	left:0;
    background-color:black;
    color:white;
    clear:both;
    text-align:center;
    padding:5px;	 	 
}
</style>
</head>
<body>
<header>
<h1>ADDRESS BOOK</h1>
</header>

<nav>
Best<br/>
Address<br/>
Book<br/>
Of<br/>
The<br/>
Universe
</nav>

<section>
	<table>
		<form action="mainpage.jsp" method=get>
		<tr>
			<td>Name:</td>
			<td>
				<input type="text" name="name" value=<%=request.getParameter("name")%>></input>
			</td>
		</tr>
		<tr>
			<td>Surname:</td>
			<td>
				<input type="text" name="surname" value=<%=request.getParameter("surname")%>></input>
			</td>
		</tr>
		<tr>
			<td>Mail:</td>
			<td>
				<input type="text" name="mail" value=<%=request.getParameter("mail")%>></input>
			</td>
		</tr>
		<tr>
			<td>Address:</td>
			<td>
				<input type="text" name="address" value=<%=request.getParameter("address")%>></input>
			</td>
		</tr>
		<tr>
			<input type="hidden" name="id" value=<%=request.getParameter("id")%>></input>
			<input type="hidden" name="action" value=<%=request.getParameter("action")%>></input>
			<input type="submit" value="OK"></input>
		</tr>
	</table>
</section>

<footer>
Cool Address Book
</footer>
</body>
</html>